package happywing.client.widget;


import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Grid;

public class Contacts extends Grid {
	public Contacts() {
		super(20,4);
		// Put some values in the grid cells.
	    for (int row = 0; row < 4; ++row) {
	    	this.setWidget(row, 0, new UserHead("face_03.jpg", "张楠离"));
	    	this.setText(row, 1, "qq: 187164141");
	    	this.setText(row, 2, "手机: 13637729503");
	    	this.setText(row, 3, "邮箱: sk.koori@gmail.com");
	    }

	    // You can use the CellFormatter to affect the layout of the grid's cells.
	    this.getCellFormatter().setWidth(0, 0, "100px");
	    this.getCellFormatter().setWidth(0, 1, "256px");
	    this.getCellFormatter().setWidth(0, 2, "256px");
	    this.getCellFormatter().setWidth(0, 3, "256px");
	    
	    setStyleName("uiitem-container contacts");
	}
}
